package com.hundsun.yr.universal.p2p.bean;

import com.hundsun.yr.universal.library.data.HSSharedPreferences;
import com.hundsun.yr.universal.p2p.bean.UserInfo.BindStatus;




/**
 * @Title: BindCardEntity.java 
 * @Description: 绑定银行卡
 * @date 2016-1-19 下午3:32:44 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class BindCardEntity {

	/**
	 * 银行名称
	 */
	private String bankName;
	/**
	 * 银行ID
	 */
	private String bankNo;
	/**
	 * 支行名称
	 */
	private String branchName;
	/**
	 * 卡号
	 */
	private String cardNo;
	/**
	 * 绑定手机号
	 */
	private String preMobile;
	/**
	 * 绑定状态
	 */
	private String status;
	/**
	 * 是否默认
	 */
	private String isDefault;
	/**
	 * 是否开通快捷支付
	 */
	private String openFastPay;
	
	/**
	 * 绑定ID
	 */
	private String bindId;
	/**
	 * 
	 */
	private String clsbankNo;
	/**
	 * 
	 */
	private String createTime;
	
	/**
	 * 
	 */
	private String currency;
	
	/**
	 * 
	 */
	private String updateTime;
	/**
	 * 
	 */
	private String userName;
	/**
	 * 银行卡logo
	 */
	private String bigLogo;
	/**
	 * 用户ID
	 */
	private String userNo;

	public String getBigLogo() {
		return bigLogo;
	}

	public void setBigLogo(String bigLogo) {
		this.bigLogo = bigLogo;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankNo() {
		return bankNo;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getPreMobile() {
		return preMobile;
	}

	public void setPreMobile(String preMobile) {
		this.preMobile = preMobile;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

	public String getOpenFastPay() {
		return openFastPay;
	}

	public void setOpenFastPay(String openFastPay) {
		this.openFastPay = openFastPay;
	}

	public String getBindId() {
		return bindId;
	}

	public void setBindId(String bindId) {
		this.bindId = bindId;
	}

	public String getClsbankNo() {
		return clsbankNo;
	}

	public void setClsbankNo(String clsbankNo) {
		this.clsbankNo = clsbankNo;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserNo() {
		return userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}
	
	/**
	 * 存储本地信息
	 * @param sharedPreferences
	 */
	public void saveBankCardInfo(HSSharedPreferences sharedPreferences){
		
		sharedPreferences.putShareProf(UserInfo.BANKCARD, cardNo);
		sharedPreferences.putShareProf(UserInfo.IF_BINDCARD, BindStatus.BIND);
		sharedPreferences.putShareProf(UserInfo.IF_ACCOUNT, "YES");
		sharedPreferences.putShareProf(UserInfo.IF_REALNAME, "YES");
		
	}
	
	
}
